package fregat.microchip.usb.device;
import fregat.microchip.usb.jusb;

public class usb_device {
	private jusb usb;
	private int device_descriptor;
	
	public usb_device (int dd)
	{
		device_descriptor = dd;
		usb = jusb.createInstance();
	}
	
	public void write (byte b[])
	{
		usb.writeDevice(this, b);
	}
	
	public byte[] read ()
	{
		return usb.readDevice(this);
	}
	
	public int open ()
	{
		return  usb.openDevice(this);
	}
}
